package com.ym521.imgcrop.base;

/**
 * @author Ym
 * E-mail: 2435970206@qq.com
 * createTime:2023/12/29
 * explain:裁剪结果
 */
public class CropResult {
    private CropResultCode code;
    private String imagePath;
    private String extra;

    public CropResult(CropResultCode code, String imagePath, String extra) {
        this.code = code;
        this.imagePath = imagePath;
        this.extra = extra;
    }

    public CropResult(CropResultCode code, String imagePath) {
        this(code, imagePath, null);
    }

    public CropResult(CropResultCode code) {
        this(code, null);
    }

    public CropResultCode getCode() {
        return code;
    }

    public String getImagePath() {
        return imagePath;
    }

    public String getExtra() {
        return extra;
    }

    @Override
    public String toString() {
        return "CropResult{" +
                "code=" + code +
                ", imagePath='" + imagePath + '\'' +
                ", extra='" + extra + '\'' +
                '}';
    }
}
